package net.techwatch.gwt.mvp.client;

import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.HandlerRegistration;

public class MockHasClickHandlers implements HasClickHandlers {

	ClickHandler lastClickHandler;
	
	@Override
	public HandlerRegistration addClickHandler(ClickHandler handler) {
		lastClickHandler = handler;
		
		return new HandlerRegistration() {
		
			@Override
			public void removeHandler() {
		
			}
		};
	}

	@Override
	public void fireEvent(GwtEvent<?> event) {

	}

}
